package com.leizhou.springboot;

// import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import tk.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author LT
 * @version 1.0.0
 * @ClassName HighApplication.java
 * @Description TODO
 * @createTime 2020年04月16日 21:12:00
 */
// 启动类
@SpringBootApplication
@MapperScan("com.leizhou.springboot.mapper")  // 配置数据访问接口，采用包扫描
public class HighApplication extends SpringBootServletInitializer {

    // web项目的入口方法
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder){
        System.out.println("=========SpringApplicationBuilder========");
        // 设置启动类
        builder.sources(HighApplication.class);
        return builder;
    }

    public static void main(String[] args) {
        SpringApplication.run(HighApplication.class, args);
    }
}
